projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13e788
)
MenuShell: Avoid compiler warning re un/signed cmp
author
Daniel Boles
<dboles.src@gmail.com>
Tue, 17 Apr 2018 19:50:04 +0000
(20:50 +0100)
committer
Daniel Boles
<dboles.src@gmail.com>
Tue, 17 Apr 2018 19:53:48 +0000
(20:53 +0100)
priv->button is a guint, but we assigned it to a local gint.
gtk/gtkmenushell.c:734:37: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
if (button && (new_button != button) && priv->parent_menu_shell)
^
gtk/gtkmenushell.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenushell.c
b/gtk/gtkmenushell.c
index 494aff5402d8819dc70545aae24fb0836f9096f6..69f1568d97d58a6cd1e572ae053388c374ff4d9d 100644
(file)
--- a/
gtk/gtkmenushell.c
+++ b/
gtk/gtkmenushell.c
@@
-727,7
+727,7
@@
gtk_menu_shell_event (GtkWidget *widget,
if (priv->active)
{
GtkWidget *menu_item;
- gint button = priv->button;
+ g
u
int button = priv->button;
priv->button = 0;